<!DOCTYPE html>
<html lang="en">
{% set path = "http://YourIpaddr:8881/" %}
<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">

  <title>GM账号信息管理</title>
  <meta content="" name="descriptison">
  <meta content="" name="keywords">

  <!-- Favicons -->
  <link href="{{ path }}static/gm/assets/img/favicon.png" rel="icon">
  <link href="{{ path }}static/gm/assets/img/apple-touch-icon.png" rel="apple-touch-icon">

  <!-- Google Fonts -->
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,600,600i,700,700i,900" rel="stylesheet">

  <!-- Vendor CSS Files -->
  <link href="{{ path }}static/gm/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <link href="{{ path }}static/gm/assets/vendor/icofont/icofont.min.css" rel="stylesheet">
  <link href="{{ path }}static/gm/assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
  <link href="{{ path }}static/gm/assets/vendor/animate.css/animate.min.css" rel="stylesheet">
  <link href="{{ path }}static/gm/assets/vendor/venobox/venobox.css" rel="stylesheet">
  <link href="{{ path }}static/gm/assets/vendor/aos/aos.css" rel="stylesheet">

  <!-- Template Main CSS File -->
  <link href="{{ path }}static/gm/assets/css/style.css" rel="stylesheet">

</head>

<body>



  <!-- ======= Header ======= -->
  <header id="header">
    <div class="container">

      <div class="logo float-left">
        <h1 class="text-light"><a href="temp.html"><span>Mamba</span></a></h1>
        <!-- Uncomment below if you prefer to use an image logo -->
        <!-- <a href="temp.html"><img src="{{ path }}static/gm/assets/img/logo.png" alt="" class="img-fluid"></a>-->
      </div>

      <nav class="nav-menu float-right d-none d-lg-block">
        <ul>
          <li class="active"><a href="{{ url_for('gmIndex') }}">账号<i class="la la-angle-down"></i></a></li>
            <li class="active"><a href="{{ url_for('gm_char') }}">角色<i class="la la-angle-down"></i></a></li>
            <li class="active"><a href="{{ url_for('logout') }}">退出<i class="la la-angle-down"></i></a></li>


        </ul>
      </nav><!-- .nav-menu -->

    </div>
  </header><!-- End Header -->

  <!-- ======= Our Team Section ======= -->
    <section id="team" class="team">
      <div class="container">

        <div class="section-title">
          <h2>角色信息列表</h2>
            <p>由于应用需要与您的数据库通讯，因此您的每一个操作执行可能都需要几秒钟执行完毕……请您耐心等待！！</p>
        </div>

        <!-- ======= Counts Section ======= -->
    <section class="counts section-bg">
      <div class="container">

          <table class="table table-striped" charset="GBK">

              <tr>
				  <td>角色编号</td>
                  <td>角色名称</td>
                  <td>所属账号</td>
                  <td>赠点数量</td>
                  <td>元宝数量</td>
                  <td>角色等级</td>
                  <td>门派编号</td>
                  <td>选项</td>
              </tr>

              {% for info in data_info %}
              <tr>
                  <td>{{ info['charguid'] }}</td>
				  <td>{{ info['charname'] }}</td>
                  <td>
                      {{ info['accname']}}
                  </td>
                  <td>{{ info['zengdian'] }}</td>
                  <td>{{ info['yuanbao'] }}</td>
                  <td>{{ info['level'] }}</td>
                  <td>{{ info['menpai'] }}</td>


                  <td><a href="/gm_chartool?block_char={{ info['charguid'] }}" onclick="return confirm('确定封禁？\n 注意：与服务器交互需要一定时间，点击后请耐心等待页面刷新！！')">封禁</a>/
                      <a href="/gm_chartool?unblock_char={{ info['charguid'] }}" onclick="return confirm('确定解封？\n 注意：与服务器交互需要一定时间，点击后请耐心等待页面刷新！！')">解封</a>/
                      <a href="/gm_chartool?del_char={{ info['charguid'] }}" onclick="return confirm('确定删除角色？\n 注意：与服务器交互需要一定时间，点击后请耐心等待页面刷新！！')">删除角色</a>/
{#                      <a href="/gm_chartool?clearbag_char={{ info['charguid'] }}" onclick="return confirm('确定清空背包？\n 注意：与服务器交互需要一定时间，点击后请耐心等待页面刷新！！')">清空背包</a>/#}
                        <a href="/gm_chartool?clearyb_char={{ info['charguid'] }}" onclick="return confirm('确定清空元宝、赠点？\n 注意：与服务器交互需要一定时间，点击后请耐心等待页面刷新！！')">清空元宝赠点</a></td>
              </tr>

              {% endfor %}


          </table>


        </div>


    </section><!-- End Counts Section -->

      </div>
    </section><!-- End Our Team Section -->


  <!-- ======= Footer ======= -->
  <footer id="footer">


    <div class="container">
      <div class="copyright">
        &copy; Copyright <strong><span>Mamba</span></strong>. All Rights Reserved
      </div>

    </div>
  </footer><!-- End Footer -->

  <a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>

  <!-- Vendor JS Files -->
  <script src="{{ path }}static/gm/assets/vendor/jquery/jquery.min.js"></script>
  <script src="{{ path }}static/gm/assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  <script src="{{ path }}static/gm/assets/vendor/jquery.easing/jquery.easing.min.js"></script>
  <script src="{{ path }}static/gm/assets/vendor/php-email-form/validate.js"></script>
  <script src="{{ path }}static/gm/assets/vendor/jquery-sticky/jquery.sticky.js"></script>
  <script src="{{ path }}static/gm/assets/vendor/venobox/venobox.min.js"></script>
  <script src="{{ path }}static/gm/assets/vendor/waypoints/jquery.waypoints.min.js"></script>
  <script src="{{ path }}static/gm/assets/vendor/counterup/counterup.min.js"></script>
  <script src="{{ path }}static/gm/assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
  <script src="{{ path }}static/gm/assets/vendor/aos/aos.js"></script>

  <!-- Template Main JS File -->
  <script src="{{ path }}static/gm/assets/js/main.js"></script>

</body>

</html>